package com.wwl.cms.utils.designModeTest.interpreter;

import java.util.HashMap;

/**
 * @author wwl
 * @version 1.0
 * @date 2021/9/26 20:27
 * @description:变量解释器
 */
public class VarExpression extends Expression {
    private String key;

    public VarExpression(String key) {
        this.key = key;
    }

    @Override
    public int interpreter(HashMap<String, Integer> var) {
        return var.get(this.key);
    }
}
